package com.itheima.test1;

public class Test1 {

    public static void main(String[] args) {
        Outer outer = new Outer();
        outer.userInner();
    }
}


class Outer {
    private class Inner {
        int num = 10;

        public void sing() {
            System.out.println("只因你太美");

        }
    }
private String name;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public void userInner(){
        Inner inner = new Inner();
        System.out.println(inner.num);
        inner.sing();

    }


}